
class Solution:
    def rotateString(self,s,offset):
        #if len(s) > 0:
        #    offset = offset % len(s)
        return (s + s)[len(s) -offset : 2 * len(s) - offset]
        return s
if __name__ == '__main__':
    s = ["a","b","c","d","e","f"]
    offset = 4
    solution = Solution()
    print(solution.rotateString(s,offset))